package com.ruoyi.project.front.controller;

import com.ruoyi.project.front.service.FrontHostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class FrontController {

    @Autowired
    private FrontHostService frontHostService;
    @GetMapping("/")
    public String showIndex(Model model){
        model.addAttribute("list",frontHostService.showHost());
        return "frontend/index";
    }
}
